
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.RightRule;

public interface RightRuleDao extends Dao {

    /**
     * Retrieves all of the rightRules
     */
    public List getRightRules(RightRule rightRule);

    /**
     * Gets rightRule's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the rightRule's id
     * @return rightRule populated rightRule object
     */
    public RightRule getRightRule(final Long id);

    /**
     * Saves a rightRule's information
     * @param rightRule the object to be saved
     */    
    public void saveRightRule(RightRule rightRule);

    /**
     * Removes a rightRule from the database by id
     * @param id the rightRule's id
     */
    public void removeRightRule(final Long id);
}

